$(document).on('click','.eshopuserinfo',function(){
	var type = $(this).attr('type');
	$.ajax({
		url:'/eshop/backEshop/backEshopUserInfoList.html',
		type:'get',
		dataType:'html',
		data:{
			"pageNo":1,
			"pageSize":1000,
			"type":type
		},
		success:function(data){
			$('.pageChange').html(data);
			$('.pageTitle').find('a').html($('.headerValue').val());
		}
	})
})


//后台查看没有付款的订单
$(document).on('click','.eshoptrade',function(){
	var that = this;
	$.ajax({
		url:'/eshop/backEshop/backEshopTradeList.html',
		type:'get',
		dataType:'html',
		data:{
			"pageNo":1,
			"pageSize":1
		},
		success:function(data){
			$('.pageChange').html(data);
			$('.pageTitle').find('a').html($('.headerValue').val());
			$(that).addClass('active').parent().siblings().find('a').removeClass('active');
		}
	})
})

//后台查看已经付款的订单
$(document).on('click','.tradeList',function(){
	var status = $(this).attr('status');
	var that = this;
	$.ajax({
		url:'/eshop/backEshop/backTradeList.html',
		type:'get',
		dataType:'html',
		data:{
			"pageNo":1,
			"pageSize":1,
			"status":status
		},
		success:function(data){
			$('.pageChange').html(data);
			$(that).addClass('active').parent().siblings().find('a').removeClass('active');
		}
	})
})
//分页
//var tableHeight=$(".littleCr").height();
//alert(tableHeight);
//$(".littleCl").height(tableHeight);
//$(".littleCc").height(tableHeight);
 var pageCount=$(".pageCount").val();
    $(".tcdPageCode").createPage({
        pageCount:pageCount,
        current:$('.pageNo').val(),
        backFn:function(p){
//            var companyNameVar = $(".companyName").val();
//			if(companyNameVar!=null){
//				companyNameVar = encodeURI(encodeURI(companyNameVar));
//			}
        	window.location.href="/eshop/backEshop/backEshopList.htm?pageNo="+p+"&qualification="+$("#qualification").val()+"&taxpayer="+$("#taxpayer").val()
        	+"&trademark="+$("#trademark").val()+"&price="+$("#price").val()+"&keyWord="+$("#keyWord").val()+"&orderBy="+$("#orderBy").val();
        }
    });
